define(['backbone', 'underscore', 'jsonview', 'jquery'], function(Backbone, _, jsonview, $) {

  function main() {
    var path = 'v/graph/data' + '/flight';
    loadPlugin(path, app);
  }

  function loadPlugin(path, cb) {
    eval('(function(cb) { require(["' + path + '"], cb) })')(cb);
  }

  function app(flight) {
    var $app = $('<div id="app">');
    $('#main').html($app);
    $app.append(jsonview(flight));
  }

  return main;
})
